package com.senjoeson.manager.impl;

import com.senjoeson.manager.bean.Apkinfo;
import com.senjoeson.manager.mapper.ApkinfoMapper;
import com.senjoeson.manager.service.ApkInfoService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author MyPC
 * @date 2018/11/6
 */
@Service
public class ApkInfoServiceImpl implements ApkInfoService {
    @Autowired
    ApkinfoMapper mApkInfoMapper;

    @Override
    public Apkinfo getSingleApkInfo(String appId) {
        return mApkInfoMapper.getSingleApkInfo(appId);
    }

    @Override
    public boolean addApkInfo(Apkinfo apkInfo) {
        return mApkInfoMapper.addApkInfo(apkInfo);

    }

    @Override
    public void checkApkInfo(String appId, String SHA1, String packageName, String versionName, String VersionCode, String md5Value) {
        mApkInfoMapper.checkApkInfo(appId, SHA1, packageName, versionName, VersionCode, md5Value);
    }

    @Override
    public List<Apkinfo> getAllApkInfo() {
        return mApkInfoMapper.selectAll();
    }


}
